package com.intelligent.service;

import com.intelligent.pojo.ProductionMaterialRequisition;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
* @author lenovo
* @description 针对表【production_material_requisition(生产领料表)】的数据库操作Service
* @createDate 2025-09-07 20:38:29
*/
public interface ProductionMaterialRequisitionService extends IService<ProductionMaterialRequisition> {
    IPage<Map<String, Object>> pageWithJoin(
            Page<Map<String, Object>> page,
            String requisitionNo,
            Integer approvalStatus,
            String productionWorkOrder,
            String username,
            String warehouseReceipt,
            String startDate,
            String endDate
    );

    Map<String, Object> getDetailById(Long id);

    boolean addProductionMaterialRequisition(ProductionMaterialRequisition entity);

    boolean updateProductionMaterialRequisition(ProductionMaterialRequisition entity);

    boolean deleteById(Long id);
}
